<template>
    <div class="users">
        <!-- 表格 -->
       <el-table :data="users">
           <el-table-column prop="id" label="编号" width="80"></el-table-column>
           <el-table-column prop="realname" label="姓名"></el-table-column>
           <el-table-column prop="telephone" label="电话"></el-table-column>
           <el-table-column prop="gender" label="性别"></el-table-column>
           <!-- <el-table-column prop="id_card" label="身份证号码"></el-table-column>
           <el-table-column prop="role_id" label="权限级别"></el-table-column> -->
           <el-table-column label="操作" fixed="right">
            <template slot-scope="scope">   
               <el-button type="primary" size="small" @click="edit(scope.row)">更改权限</el-button>
            </template>
           </el-table-column>      
       </el-table>
    <!-- /表格 -->
    </div>
</template>
<script>
import{ get } from "@/utils/request";
export default {
    data(){
        return{
            visible:false,
            users:[],
        }
        
    },
    created(){
        this.loadUsers();
    },
    methods:{
        loadUsers(){
            let url = "http://121.199.43.121:8090/user/find_all";
            get(url).then(response =>{
                this.users=response.data;
            })
        },
        edit(){

        }
        
    }
}
</script>